#12 fixed sort order issue

Resolves #12