Sort by name (compatible with php < 5.4)