Javascript Sort Json Array By Two Keys