[[[outtext.write('\n'.join(sortedlist)), outtext.close()] for outtext in [open('result.txt', 'w')]] for sortedlist in [[([[x[0] for x in sorted(re.findall(r'(likes: (\d+) .+)', inptext.read()), key=lambda x: int(x[1]))] for re in [__import__('re')]], inptext.close()) for inptext in [open('result.txt', 'r')]][0][0][0]]]