Consider the following is my Array
[ {\"id\":10,\"name\":\"name10\",\"valid\":true}, {\"id\":12,\"name\":\"name12\",\"valid\":false}, {\"id\":11,\"name
you can use Gson library https://sites.google.com/site/gson/gson-user-guide to get the Array(the class should implement comparable) and sort with arrays.sort();
Thanks