--- title: "Utilities Block" slug: "utilities-block" updated: 2022-08-22T07:20:57Z published: 2022-08-22T07:20:57Z canonical: "help.pillir.io/utilities-block" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.pillir.io/llms.txt > Use this file to discover all available pages before exploring further. # Utilities Block Utilities Utilities are used to perform the sorting and grouping actions. ## Sort: | **Input** | **Output** | **Block Layout** | **Generated Code** | | --- | --- | --- | --- | | Choose the sorting type (Ascending, Descending) ParamName as a variable or Text JSON data as variable or object data. | Returns Sorted JSON object based on sorting type. | ![](https://cdn.document360.io/718af901-247b-46be-8ace-83da21839237/Images/Documentation/image-1620914139475.png) ![](https://cdn.document360.io/718af901-247b-46be-8ace-83da21839237/Images/Documentation/image-1620914158812.png) | ```javascript pillirFunctions. object_sort ("ascending", 'parameter', obj) ``` | #### ## GroupBy:     | **Input** | **Output** | **Block Layout** | **Generated Code** | | --- | --- | --- | --- | | ParamName as a variable or Text, JSON data as variable or object data. | Returns Grouped JSON object. | ![GroupBy](https://cdn.document360.io/718af901-247b-46be-8ace-83da21839237/Images/Documentation/GroupBy.png) | ```javascript pillirFunctions. object_group_by ('parameter', obj) ``` |