Method: App42::Client::RestUtil#sort_convert_table
- Defined in:
- lib/app42/client/rest_util.rb
#sort_convert_table(table) ⇒ Object
This method sorts all the values that are stored in the table.
41 42 43 44 45 46 47 48 |
# File 'lib/app42/client/rest_util.rb', line 41 def sort_convert_table(table) sorted_params = "" table.sort {|a,b| a[0] <=> b[0]}.each{ |key, val| sorted_params << key sorted_params << val } sorted_params end |