thats the code i typed in chrome console:
var o = { "B": "2", "A": "1", "C": "3" };
var e = $(o).sort();
And thats the results (console.log)
Object {B: "2", A: "1", C: "3"} //Output for: console.log(o);
// output for console.log(e);
[Object, jquery: "1.10.1", constructor: function, init: function, selector: "", toArray: function…]
0: Object
A: "1"
B: "2"
C: "3"
...
Object {B: "2", A: "1", C: "3"} //output console.log(e[0]);
can someone tell me how i get the sorted object, and why is the Object in e sorted and e[0] is not ?
Thank you :)