Fixing typo(?) in php

sort($files); instead of rsort($files); – outputs in alphabetical order