grisu / gricli

Grisu commandline client
7 stars 2 forks source link

print jobs sorting #214

Closed sina-masoud-ansari closed 12 years ago

sina-masoud-ansari commented 12 years ago

async_10 : Active async_11 : Active async_12 : Active async_13 : Active async_14 : Active async_15 : Active async_16 : Active async_17 : Active async_18 : Active async_19 : Active async_2 : Active async_20 : Active

async_2 should be up the top?

Aethylred commented 12 years ago

No, this is normal sorting behavior, but either:

a) users should be encouraged to pad numbers with zeros, so '2' becomes '02' or '002' b) if the numbering is generated by GriCli then GriCli should pad with zeros.

makkus commented 12 years ago

how many zeros? Gricli doesn't know how many same-name jobs the user wants to submit. That's why I decided to not bother at all...

Aethylred commented 12 years ago

Tens of jobs (01-99) would be expected, while hundreds (001-999) should still be reasonable. I'd pad to 3 digits.