Object a1= "[{"rdf:resource":"record\/16777228-43386050"},{"rdf:resource":"record\/16777228-43386055"},{"rdf:resource":"record\/16777228-43386057"},{"rdf:resource":"record\/16777228-43386059"}]"
Object a2= "[{"rdf:resource":"record\/16777228-43386059"},{"rdf:resource":"record\/16777228-43386057"},{"rdf:resource":"record\/16777228-43386055"},{"rdf:resource":"record\/16777228-43386050"}]"
Above Objects a1 & a2 , both are same, only the order in which they retrieved is different.
How to compare the above objects in such a way, that should return true