Change files sort switch implementation.

* Use default sort as a reference.
* Change naming.