platform-bible-utils
    Preparing search index...

    Function compareProjectsByName

    • Compares two projects for display order: alphabetical by short name, case- and accent-insensitive.

      Short name rather than full name because the short name is the field that leads every project label, and a list ordered by a field the user cannot see reads as unsorted. Compares names only — a caller with its own tie-break (a scroll group, a project id) layers it on top of this result.

      Parameters

      Returns number

      Negative, zero or positive, as Array.prototype.sort expects.