I have a List of strings ["pana", "open","peno","alp","palp"]
and i need to sort them by having the letter "p", then alphabetically:
so the result should be ["pana", "palp","peno", "open","alp"]
How can i do this in Flutter
I have a List of strings ["pana", "open","peno","alp","palp"]
and i need to sort them by having the letter "p", then alphabetically:
so the result should be ["pana", "palp","peno", "open","alp"]
How can i do this in Flutter
2
Answers
Try something like this
This is quite a roundabout way of doing it but:
I will update once I’ve been able to optimise it but we can work off this for now.