-
Notifications
You must be signed in to change notification settings - Fork 55
Consider using human/natural sort order #143
Copy link
Copy link
Closed
Description
Names used in libraries quite often contain numbers. In general, a sequence of digits in a name seems to be usually a number, not just a sequence of digits. However, rustfmt's sort order does not take that into account. For example, if I import several nom parsers for various integers, rustfmt suggests the following order
use nom::number::complete::{le_u128, le_u16, le_u32, le_u64, le_u8};
which feels really weird compared to
use nom::number::complete::{le_u8, le_u16, le_u32, le_u64, le_u128};
It would be great if the rustfmt sort order matched the natural expectations.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.