2D Sorting

Input two elements with the same length, then Mech-Vision would sort them twice with different standards and finally output the indexes after sorting. The combination is as follows:

Procedure of 2D sorting

Figure 1. Procedure of 2D sorting

The introduction of each steps is as follows:

  1. Sort and Stratify Sort and classify the first group of elements with the specified layer spacing(Standard 1) and the output the index.

  2. Reorder According to Given Indices Using the index of the first sorting, Mech-Vision would sort the second group of elements and then output values after sorting.

  3. Sort and Stratify Based on the sorted second group and the index of the first sorting, this step would sort the second group again with the specified layer spacing(Standard 2) and output the index. With this index, the index of the first sorting is sorted again and then the indexes after sorting twice are generated.

  4. Unpack and Merge Data This step turns three-dimensional array-like variables into two-dimensional variables based on the indexes after sorting twice.

  5. Unpack and Merge Data After last step “Unpack And Merge Data”, this step could turn the two-dimensional array-like variables into a one-dimensional array as the final output.