Php Order Array By Key Value Db