Php Sort Array Of Objects By Rulers