你如何控制文件在GitHub要点中出现的顺序 [英] How do you control the order in which files appear in a GitHub gist
问题描述
有没有办法控制文件出现在要点中的顺序?他们似乎不按字母顺序或按时间顺序排列。我希望将README.md作为多文件要点中的第一个文件出现,但没有任何删除文件并重新添加它似乎改变了任何东西。
是否有这些文件的命令,我没有看到,或者GitHub是否维护一个内部文件类型优先级列表?
它似乎是一个简单的 ASCIIbetical order 。
ASCII码顺序是也被称为ASCIIbetical订单。
数据整理有时以这种顺序完成,而不是按照标准字母顺序(整理顺序)完成。 ASCII顺序的主要偏差为:
- 全部大写字母在小写字母之前,例如<$ code> a
- 数字和许多标点符号位于字母之前,例如,
4
先于一个
- 天真地作为字符串,例如
10
在之前2
ul>
由于您有一个以' G
'开头的文件,它会先于 README.md
。
Is there a way to control the order in which files appear in a gist? They don't seem to be alphabetical or chronological. I'd like to have a README.md appear as the first file in a multi-file gist, but no amount of "deleting" a file and re-adding it seems to change anything.
Is there an order to these files that I'm not seeing, or does GitHub maintain an internal filetype priority list?
It seems to be a simple ASCIIbetical order.
ASCII-code order is also called ASCIIbetical order.
Collation of data is sometimes done in this order rather than "standard" alphabetical order (collating sequence). The main deviations in ASCII order are:
- All uppercase come before lowercase letters, for example, "
Z
" before "a
"- Digits and many punctuation marks come before letters, for example, "
4
" precedes "one
"- Numbers are sorted naïvely as strings, for example, "
10
" precedes "2
"
Since you have a file starting with 'G
', it will precedes a "README.md
".
这篇关于你如何控制文件在GitHub要点中出现的顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!