I'm creating an app that is essentially a to-do list but also automatically prioritizes user inputted task names by an algorithm based on the no. of days between today's date and the deadline date they select, the important of the task (1-10) and approximate time it will take to complete.
I want a list to display "task name | # days until due" but in order of the corresponding rankID from the algorithm based on integer values of task importance ans # of days until due. Right now I can display "task name | # days until due" without sorting or I can sort the inputs but only display the int that corresponds to the inputs. Any advice on how to sort by int but display str?