Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Sort a list so that elements in common with another list are in the same order
ResourceFunction["SortLike"][l1,l2] sorts elements in the list l1in the same order as in l2. | |
ResourceFunction["SortLike"][l] gives an operator that sorts lists like l. |
Sort a list like another list:
| In[1]:= |
| Out[1]= |
Sort names according to an existing list:
| In[2]:= |
| Out[2]= |
Create an operator:
| In[3]:= |
| Out[3]= |
Sort some fruit:
| In[4]:= |
| Out[4]= |
Sort integers based on an existing list:
| In[5]:= |
| Out[5]= |
| In[6]:= |
| Out[6]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License