Comment 4 for bug 1762309

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1762309] Re: Juju should add new machine after version sorting bundle machines

I'd just make a github.com/juju/naturalsort.Sort package.

John
=:->

On Wed, Apr 11, 2018, 00:30 Tim Penhey <email address hidden> wrote:

> Yet another thing to move out of utils.
>
> Does this make sense to have in a juju/collections package?
>
>
> On 11/04/18 00:50, John A Meinel wrote:
> > utils.SortStringsNaturally()
> > (elsewhere it is called 'naturalsort')
> > https://en.wikipedia.org/wiki/Natural_sort_order
> > which links to
> > https://blog.codinghorror.com/sorting-for-humans-natural-sort-order/
> >
> > and I got it from Martin Pool:
> > https://github.com/sourcefrog/natsort
> >
> >
> > On Tue, Apr 10, 2018 at 1:13 AM, Tim Penhey <email address hidden>
> > wrote:
> >
> >> I *think* this is just changing an alphabetical sort into a numeric
> >> lexical sort, and we have that function somewhere.
> >>
> >> ** Changed in: juju
> >> Status: New => Triaged
> >>
> >> ** Changed in: juju
> >> Importance: Undecided => Medium
> >>
> >> ** Tags added: bitesize bundles deploy
> >>
> >> --
> >> You received this bug notification because you are subscribed to juju.
> >> Matching subscriptions: juju bugs
> >> https://bugs.launchpad.net/bugs/1762309
> >>
> >> Title:
> >> Juju should add new machine after version sorting bundle machines
> >>
> >> To manage notifications about this bug go to:
> >> https://bugs.launchpad.net/juju/+bug/1762309/+subscriptions
> >>
> >
>
> --
> You received this bug notification because you are subscribed to juju.
> Matching subscriptions: juju bugs
> https://bugs.launchpad.net/bugs/1762309
>
> Title:
> Juju should add new machine after version sorting bundle machines
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju/+bug/1762309/+subscriptions
>