Php Order Array By Subarray In Javascript Object To String