aiyanbo/sbt-dependency-updates

why does it sort the names by length and not alphabetically?

Closed this issue · 5 comments

As a human reader I would find versions faster if they are sorted alphabetically. Maybe this could be a configuration or changed?

val newVersions = _versions.sortBy(_.length)

Just considering the aesthetics of the codes.

  • Sort the names by length
    Untitled Diagram

  • Sort the names by alphabetically
    Untitled Diagram (1)

Actually, the version information is not used reading. So i chose the sort the names by length.

I'm not so much concerned about the aesthetics but I'd like to have stable git diffs. When one version changes from 1.2 to 1.3-RELEASE or something the lines will swap and I have a headache merging a PR. So I think it would be nice to make the sorting configurable then.

BTW thanks for that great project.

thank you very much.

Fixed in commit: ef36341