👻 Check our latest review to choose the best laptop for Machine Learning engineers and Deep learning tasks!
I have a list of strings like this:
["Aden", "abel"]
I want to sort the items, case-insensitive. So I want to get:
["abel", "Aden"]
But I get the opposite with sorted()
or list.sort()
, because uppercase appears before lowercase.
How can I ignore the case? I"ve seen solutions which involves lowercasing all list items, but I don"t want to change the case of the list items.
👻 Read also: what is the best laptop for engineering students?
We hope this article has helped you to resolve the problem. Apart from case-insensitive list sorting, without lowercasing the result?, check other code Python module-related topics.
Want to excel in Python? See our review of the best Python online courses 2023. If you are interested in Data Science, check also how to learn programming in R.
By the way, this material is also available in other languages:
- Italiano case-insensitive list sorting, without lowercasing the result?
- Deutsch case-insensitive list sorting, without lowercasing the result?
- Français case-insensitive list sorting, without lowercasing the result?
- Español case-insensitive list sorting, without lowercasing the result?
- Türk case-insensitive list sorting, without lowercasing the result?
- Русский case-insensitive list sorting, without lowercasing the result?
- Português case-insensitive list sorting, without lowercasing the result?
- Polski case-insensitive list sorting, without lowercasing the result?
- Nederlandse case-insensitive list sorting, without lowercasing the result?
- 中文 case-insensitive list sorting, without lowercasing the result?
- 한국어 case-insensitive list sorting, without lowercasing the result?
- 日本語 case-insensitive list sorting, without lowercasing the result?
- हिन्दी case-insensitive list sorting, without lowercasing the result?
Tallinn | 2023-01-27
Maybe there are another answers? What case-insensitive list sorting, without lowercasing the result? exactly means?. I am just not quite sure it is the best method
Abu Dhabi | 2023-01-27
Thanks for explaining! I was stuck with case-insensitive list sorting, without lowercasing the result? for some hours, finally got it done 🤗. Will get back tomorrow with feedback
Tallinn | 2023-01-27
Maybe there are another answers? What case-insensitive list sorting, without lowercasing the result? exactly means?. I just hope that will not emerge anymore