Sort by Two Values

You are viewing an old version of the documentation. You can switch to the documentation of the latest version by clicking the top-right corner of the page.

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 Sort by Two Values

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 will be output.

  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.

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.