Cant figure out how to do it.
I'm using sort() with compareTo() to sort a list ascending by one criteria, but i need to resort it with a second criteria, keeping odd numbers in the beggining of the list.
widget.tasks.sort((a,b){
return a.key.compareTo(b.key);
});
This code above just sorts one of the attributes of the list. A need to sort a second one of integer numbers.