Sorting

Sorting

Sorting is located under Model Studio (  ) in Data Preparation, in the task pane on the left. Use drag-and-drop method to use the algorithm in the canvas. Click the algorithm to view and select different properties for analysis.
Refer to Properties of Sorting.

In Sorting algorithm, the given numerical data is arranged either in the ascending or the descending order.

Properties of Sorting

The available properties of Sorting are as shown in the figure given below.


The table given below describes different fields present on properties of Sorting.

Field

Description

Remark

RunIt allows you to run the node.-
ExploreIt allows you to explore the successfully executed node.-
Vertical Ellipses

The available options are

  • Run till node
  • Run from node
  • Publish as a model
  • Publish code
-

Task Name

It displays the name of the selected task.

You can click the text field to edit or modify the name of the task as required.

Features

It allows you to select the feature to sort the data.

  • Multiple functions can be selected.

Sort Sequence

  • It allows you to move the selected features up or down.
  • You can decide the order in which the features appear in the output data and result.
  • Click the arrows to change the order of selected features.

  • Only the feature on the top of the list is arranged in the selected order.
  • To select another feature, move it up to the top of the sorting sequence, and then run the algorithm.

Interpretation from Sorting

The orders in which the data can be sorted are shown below. The selected numerical data can be sorted in ascending or descending order. To change the sorting order, hover over the selected feature and click the gear icon.

Then, select one of the options from Ascending and Descending.

The table given below describes the results for sorting.

Sorting

Result

Remark

Ascending

It arranges the given data in ascending (increasing) order of values.

The sorting order is selected as ascending by default.

Descending

It arranges the given data in descending (decreasing) order of values.

Example of Sorting

In the example given below, the social indicators from the United Nations Social Statistics data are sorted either in the ascending or the descending orders. It displays the variables along with the order of sorting. Only the GDPperCapita data has been sorted in the descending order.
The figure given below displays the input data which is not sorted.


After using the Sorting algorithm, the following result is displayed. We choose the GDPperCapita column to be sorted in the descending order.

The figure given below displays the output data obtained by sorting. Only the GDPperCapita data is seen to be arranged in the descending order.


    • Related Articles

    • Sorting

      Sorting is located under Model Studio ( ) in Data Preparation, in the task pane on the left. Use drag-and-drop method to use the algorithm in the canvas. Click the algorithm to view and select different properties for analysis. Refer to Properties of ...
    • Sorting Data in Widgets

      You can sort a widget based on the variables present in the chart. The default sorting of the chart is with respect to the first categorical variable used while plotting the chart. By default, this sorting is in the Descending order. For default ...
    • Sorting Templates

      The Data Templates are sorted by the date and time they were modified with the most recent data template appearing first. You can also sort data templates according to alphabetical order. To sort data templates, In the Manage dropdown, click Data ...
    • Sorting a Location

      The locations are sorted by the date and time they were created, with the most recent location appearing first. You can also sort locations according to alphabetical order. To sort locations, In the Manage dropdown, click Locations. Click Recent near ...
    • Sort

      On the Rubiscape home page, you can sort the items in the display pane. The items can be sorted by, Recent order Alphabetical order By default, the items are sorted by Recent order. Sorting by Recent Order When you log into Rubiscape, by default, the ...