DefinitelyUnlikely / FinanceAssignment

0 stars 0 forks source link

Sorting of months #2

Closed DefinitelyUnlikely closed 2 weeks ago

DefinitelyUnlikely commented 3 weeks ago

Months are currently sorted incorrectly, month 11 and 12 appears before months 2, 3... etc.

A simple fix is to add a 0 before single digits months.

DefinitelyUnlikely commented 2 weeks ago

Made a check for both week and months. If it is lower than 10, we create a string with a 0 before the digit, otherwise we do not.