Since the provided implementation is doing a directory search, you must simply ensure that the specific files in the directory do not change, and that you are sorting alphabetically each time.
因为提供的实现要进行目录搜索,必须保证目录中的指定文件不会改变,每次都要按字母顺序排序。
Why not let users move what's important to them to a region at the top, and sort those things separately (in alphabetical or whatever order), in addition to sorting the full directory below?
除了根据完整的目录排序,为什么不赋予用户将其认为最重要的文件移到顶端区域的能力,或者单独排序(按字母顺序或者其他任何顺序)?
应用推荐