No commit activity in last 3 years
No release in over 3 years
Sort Nested Columns of tables in ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 10.1.1
>= 0
 Project Readme

Nested column sorting

This Gem is used to sort nested columns in a table according to the attrribute provided by a user

nested_column_sorting can be used from the command line or as part of a Ruby web framework.

Installation

To install the gem using terminal, run the following command:

gem install nested_column_sorting

To use it in rails application add the gem to the Gemfile:

gem "nested_column_sorting"    

Basic Usage

nested_data = "" ( in json format ) column_name = "" ( string )

nested_column_sorting can sort nested column data in a table according to the parameter given by the user

# The sort_nested_column_asc/sort_nested_column_dec methiod will sort the data according to the column name in ascending/descending order.

Nested_Column::Sorting::Sort.new(nested_data, column_name).sort_nested_column_asc
Nested_Column::Sorting::Sort.new(nested_data, column_name).sort_nested_column_dec

To Do

specs