How to sort two lists? Sort distance
|
12-03-2019, 05:02 PM
Post: #17
|
|||
|
|||
RE: How to sort two lists?
(12-03-2019 10:24 AM)ailoher Wrote: What I would need is to sort the elements from a list with respect to their distance to an element outside the list. Is there any way to do so? Here is a CAS program that should do what you want, if I've correctly understood it: Code: #cas sortd({2,3,6,8,5,9},5) returns {5,6,3,2,8,9} |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)