Modular
Can we sort elements in descending order in mojo?
Mojo
christoph_schlumpf
(Christoph Schlumpf)
February 21, 2026, 4:07pm
2
Please be aware that
numbers[::-1]
copies the list. See
List slicing inconsistency
show post in topic
Related topics
Topic
Replies
Views
Activity
Interval not implementing 'Comparable' trait
Mojo
discussion
4
161
December 20, 2025
Proposal: Add radix sort to std lib
Mojo
6
271
December 30, 2025
Cannot append list to list of lists
Mojo
mojo-compiler
3
85
March 12, 2026
How to reverse data using SIMD in Mojo
Mojo
discussion
,
24_5
,
docs
1
245
June 12, 2025
How to iterate over a compile time `List`/`Tuple` in Mojo
Mojo
docs
1
102
June 7, 2025