Initially I was trying to count the number of occurrences of each word in a text, for which I found this super useful thread:
Once that I have the result in an object:
Object {I: 1, am: 1, the: 2, big: 2, bull: 1}
how can order the results/object by the number of occurrences? I have tried any type of sort and it didn't work.
how can I know the length of the object? I have tried object.length and any related idea and I always get zero as a result.
Thanks