PHP returns files in filesystem order. Changed behaviour to sort by name.