Modified sorting option correct due date id