Home > Posts > Renaming a file but preserving its sort order on Windows

Renaming a file but preserving its sort order on Windows

Sometimes you may wish to rename a file to mark it as being not yet finished or in need to be worked on etc.

In such a case on Windows if you want to make sure the filename shows first/last depending on the sort order you can prefix its name with a "_", an underscore char (assuming you sort by name ascending or descending – quick way to toggle this is by clicking one or two times as needed onto the "Name" column title at the Details view of Windows Explorer).

image

If you don’t want to ruin the alphabetical sort order you can prefix the file with "-" (the minus char). This seems to be a useful hack implemented into Windows, that is the "-" prefix is ignored when sorting by filename at a Windows Explorer folder view. You can even prefix with multiple minus chars there (all ignored). Using multiple dashes could help the file standout in the file list or help you visually order which one is more urgent to work on.

Categories: Posts Tags: , ,
  1. 2010/10/06 at 15:15

    great idea, thanks!

  1. No trackbacks yet.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.