Sort by date is causing issues

Just in case if you’re facing the issue right now and need to get back the order of dozens of tasks, you may try using Help->Recover. It scans auto-save files in reverse chronological order (least recent goes first) and asks if you want to read the file into GanttProject. Chances are that you will find an auto-save with the project data right before you sorted the tasks