What's exactly this "specific order" if i use .sorted()? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What's exactly this "specific order" if i use .sorted()?

16th May 2020, 5:27 AM
Mahdi Moqadasi
Mahdi Moqadasi - avatar
2 Answers
+ 2
Default is ascending order.
16th May 2020, 1:53 PM
A͢J
A͢J - avatar
0
Thanks But what if it was not numeric? For example a custom class with some properties
16th May 2020, 2:06 PM
Mahdi Moqadasi
Mahdi Moqadasi - avatar