Sort by numeric JSON values

When sorting by JSON values, numeric values are now sorted properly.