View Single Post
Kickaha
Veteran Member
 
Join Date: May 2004
 
2006-08-30, 10:13

Depends on how you access the files, how you want to format that rev number.

In the Finder, it intelligently identifies that File9.txt is 'less than' File100.txt, and sorts it appropriately.

Terminal doesn't. You get them all out of 'order', and you need to prepend zeroes to pad the space. But then you get into "well, how *many* zeroes?" Do you want a max of 10 revisions? 100? 1000?

YMDhms always sorts correctly, which is why a lot of people use it. It also lets you insert a copy along the way if you get an intermediate version later, or you missed one along the conversion.
  quote