def display_projects(self):
        plist = [[key, key + "*" if value["star"] else key, value["folder"], value["file"]]
                 for key, value in self.projects_info.items()]
        plist = sorted(plist)
        if self.settings.get("show_recent_projects_first", False):
            j = JsonFile(os.path.join(self.primary_dir, "recent.json"))
            recent = j.load([])
            plist = sorted(plist, key=lambda p: recent.index(p[3]) if p[3] in recent else -1,
                           reverse=True)

        count = 0
        for i in range(len(plist)):
            if plist[i][0] is not plist[i][1]:
                plist.insert(count, plist.pop(i))
                count = count + 1
        return [item[0] for item in plist], [[item[1], item[2]] for item in plist]
dataset/ETHPy150Open randy3k/Project-Manager/pm.py/Manager.display_projects/original