scelts / gees

Landing rate calculation for the Microsoft Flight Simulator 2020
GNU General Public License v3.0
123 stars 20 forks source link

Bug: My Landings - Sort by time, sort in strange order #17

Closed Leachy75 closed 6 months ago

Leachy75 commented 3 years ago

Firstly let me say thank you for a wonderful little program! I love its simplicity and the displaying of the landing data as a popout is a superb touch!

BUG: In the My Landings window, if I click the "Time" column header, the items are sorted by time and date BUT they are sorted with ascending dates and descending times OR they are sorted with descending dates and ascending times. This does not keep them in the order I would like - I would like to see them in the order they happened, top to bottom, earliest to latest or latest to earliest if I click again.

after further examination, thats not quite it but it looks pretty close to that they appear to be sorted purely as numbers and not as dates and times,

I believe this will happen in Visual Studio if you add dates and times as a "string" object to a column. If you are adding dateTime objects to a column, add them as dateTime objects and dont convert them to strings and the sorting will take care of itself. You just have to set the columns format to dateTime.

Also: can we have the dates localised! In Australia the day comes before the month and its confusing to see it represented in any other format eg.. DD/MM/YYYY where your program displays MM/DD/YYYY. This may be fixed by the previous bug fix (I think Visual Studio dateTime columns are localised automatically).

PS: keep up the good work!

scelts commented 6 months ago

Fixes