Fixed a bug with due date sort order when only one item had a due date.