Summary | How to control (or Understand) your GIST page's files list order. |
Notice | not official documentation. |
Forked from fliedonion/!GIST file list order - summary.md
Created
June 25, 2024 04:32
-
-
Save Shilo/8261517c7a523a6bc0003ea222e722ff to your computer and use it in GitHub Desktop.
Understand GIST file list order.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is sample file name leading number sign. | |
The reason of second charactor 'z' is : | |
bring this below the `#Control GIST File Order.md` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is sample file name leading hyphen. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is sample file name leading digits. |
PLEASE NOTE: This is NOT official specification document.
- Basically, ASCIIbetical order. But grouping by First character.
- If two files have completely same name without casing, they will be ordered by creation time (older first).
- Some signs come before DIGITS
- maybe
!
,#
,-
and.
always come before digits0-9
.
- maybe
- Digits
0-9
- Some signs come after DIGITS
- maybe
_
always come after digits0-9
.
- maybe
- Alphabetic characters come after signs and digits
- ignore casing.
Extensions are only characters part of filename.
a_abc.txt
, #_abc.txt
, 1_abc.txt
, __abc.txt
will
Filenames |
---|
#_abc.txt |
1_abc.txt |
__abc.txt |
a_abc.txt |
a_abc.txt
, #_abc.txt
, 1_abc.txt
, a_abc.md
, #_abc.md
, 1_abc.md
, a_abc.js
, #_abc.js
, 1_abc.js
,
2_abc.txt
, 2_abc.md
will:
Filenames |
---|
#_abc.js |
#_abc.md |
#_abc.txt |
1_abc.js |
1_abc.md |
1_abc.txt |
2_abc.md |
2_abc.txt |
a_abc.js |
a_abc.md |
a_abc.txt |
HIJ.txt
, abc.txt
, opQ.txt
, HIK.txt
will
Filenames |
---|
abc.txt |
HIJ.txt |
HIK.txt |
opQ.txt |
aaa.txt
, ZZZ.txt
will
Filenames |
---|
aaa.txt |
ZZZ.txt |
AAA.txt
, zzz.txt
will
Filenames |
---|
AAA.txt |
zzz.txt |
Thease means caracter-case are ignored.
a_abc.txt
, a_ABC.txt
If you create a_abc.txt
first, a_abc.txt
comes before a_ABC.txt
.
If you create a_ABC.txt
first, a_abc.txt
comes after a_ABC.txt
.
If you want to bring a file comes before any others, rename that file with leading !
is easy way.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is sample file name leading underscore. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is sample file name leading lower case character. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is sample file name leading upper case character. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment