logbot: logs are out of order (1, 10, 11, 2, 20, ...) #10

Closed
opened 2021-03-07 20:34:08 +01:00 by mb · 2 comments

It sorts the numerical list as strings again.

It sorts the numerical list as strings again.
mb changed title from LogBot generate the log out of order (1, 10, 11, 2, 20, ...) to LogBot logs are out of order (1, 10, 11, 2, 20, ...) 2021-03-07 20:34:32 +01:00

An easy fix would be to zeropad numbers so that 1 becomes 01 and 2 becomes 02.

An easy fix would be to zeropad numbers so that 1 becomes 01 and 2 becomes 02.
mb changed title from LogBot logs are out of order (1, 10, 11, 2, 20, ...) to logbot: logs are out of order (1, 10, 11, 2, 20, ...) 2021-03-12 12:32:11 +01:00
Author

Woops i don't remember how this was solved in the end, but it is in order again

Woops i don't remember how this was solved in the end, but it is in order again
mb closed this issue 2021-05-06 21:54:50 +02:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: varia/bots#10
No description provided.