Sort algorithms in list and dropdown