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
230
December 20, 2025
Proposal: Add radix sort to std lib
Mojo
6
403
December 30, 2025
Cannot append list to list of lists
Mojo
mojo-compiler
2
113
September 13, 2025
What is the point of do_smallsort in sort.mojo
Standard Library
1
112
September 2, 2026
How to reverse data using SIMD in Mojo
Mojo
discussion
,
24_5
,
docs
0
268
December 14, 2024