cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
hogi
Level XIII

sort list ( ... , decending)

For sort(), there is an option descending.

For sort list() not?


What is the easiest/best way to sort a list with descending order?

Sorting Lists 

2 ACCEPTED SOLUTIONS

Accepted Solutions
jthi
Super User

Re: sort list ( ... , decending)

Reverse(Sort List()) is one option

Names Default To Here(1);
mylist = {111, 212, 133, 114, 55};
a = Sort List(mylist);
b = Reverse(Sort List(mylist));

show(a, b);
//a = {55, 111, 114, 133, 212};
//b = {212, 133, 114, 111, 55};
-Jarmo

View solution in original post

jthi
Super User

Re: sort list ( ... , decending)

Also there are Sort Descending() and ascending.

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: sort list ( ... , decending)

Reverse(Sort List()) is one option

Names Default To Here(1);
mylist = {111, 212, 133, 114, 55};
a = Sort List(mylist);
b = Reverse(Sort List(mylist));

show(a, b);
//a = {55, 111, 114, 133, 212};
//b = {212, 133, 114, 111, 55};
-Jarmo
jthi
Super User

Re: sort list ( ... , decending)

Also there are Sort Descending() and ascending.

-Jarmo

Recommended Articles