PHP: create custom cat order