one of my favorite sublime text features is that by default one of the F-keys is dedicated to "sort file".
-
one of my favorite sublime text features is that by default one of the F-keys is dedicated to "sort file".
As someone who uses it primarily to read and write source code, it's reassuring to always have a "completely break this script" button on hand at all times.you know, in case the program gets out of line
-
and if you want to be silly, write a c program that still functions after you sort the lines, but:
1. it compiled and functioned originally, pre-sort
2. it wasn't in any significant order to begin with. IE, it has to change by more than a few decoy lines when you sort it.It doesn't have to do the same thing, but it has to compile and run
-
@foone assuming the sort is smart enough about numbers, BASIC listings are immune!
-
@cvtsi2sd this is true
-
trying to figure out where they parse this chunk, and the answer is "they don't". They just fread the whole thing into a buffer and aim a pointer at it. That can work but it's not usual practice because of Issues.