Note: The above method works IF you are trying to sort on the root/key of the object.
If you are trying to sort on a property within the objects themselves (like a number) then you would be wise to take a peak at this:
Note: The above method works IF you are trying to sort on the root/key of the object.
If you are trying to sort on a property within the objects themselves (like a number) then you would be wise to take a peak at this: