Always sort directory entries

Prior to this commit, SHASUMS would **change** if the order of the items in the
directory changed.