{"ScriptPreparationCode":"var users = [\r\n { \u0027username\u0027: \u0027tester1\u0027, \u0027age\u0027: 32, \u0027active\u0027 : true, \u0027rank\u0027 : 3 },\r\n { \u0027username\u0027: \u0027Tester2\u0027, \u0027age\u0027: 41, \u0027active\u0027 : true, \u0027rank\u0027 : 2 },\r\n { \u0027username\u0027: \u0027Tester3\u0027, \u0027age\u0027: 22, \u0027active\u0027 : true, \u0027rank\u0027 : 1 },\r\n { \u0027username\u0027: \u0027sester3\u0027, \u0027age\u0027: 11, \u0027active\u0027 : true, \u0027rank\u0027 : 4 },\r\n { \u0027username\u0027: \u0027aester3\u0027, \u0027age\u0027: 55, \u0027active\u0027 : true, \u0027rank\u0027 : 5 },\r\n { \u0027username\u0027: \u0027bester3\u0027, \u0027age\u0027: 32, \u0027active\u0027 : true, \u0027rank\u0027 : 6 }\r\n]","TestCases":[{"Name":"js_sort","Code":"users.sort(function(a,b) {\r\n a = a.username.toLowerCase();\r\n b = b.username.toLowerCase();\r\n if (a == b) return 0;\r\n if (a \u003E b) return 1;\r\n return -1;\r\n});","IsDeferred":false},{"Name":"localcompare","Code":"users.sort(function(a,b) {\r\n return a.username.localeCompare(b.username);\r\n});","IsDeferred":false}]}