services/pypi/pypi-helpers.js
function sortDjangoVersions(versions) {
  return versions.sort((a, b) => {
    if (
      parseDjangoVersionString(a).major === parseDjangoVersionString(b).major
    ) {
      return (
        parseDjangoVersionString(a).minor - parseDjangoVersionString(b).minor
      )
    } else {
      return (
        parseDjangoVersionString(a).major - parseDjangoVersionString(b).major
      )
    }
  })
}
function sortDjangoVersions(versions) {
  return versions.sort((a, b) => {
    if (
      parseDjangoVersionString(a).major === parseDjangoVersionString(b).major
    ) {
      return (
        parseDjangoVersionString(a).minor - parseDjangoVersionString(b).minor
      )
    } else {
      return (
        parseDjangoVersionString(a).major - parseDjangoVersionString(b).major
      )
    }
  })
}
function sortDjangoVersions ( versions ) { return versions . sort ( ( a , b ) => { if ( parseDjangoVersionString ( a ) . major === parseDjangoVersionString ( b ) . major ) { return ( parseDjangoVersionString ( a ) . minor - parseDjangoVersionString ( b ) . minor ) } else { return ( parseDjangoVersionString ( a ) . major - parseDjangoVersionString ( b ) . major ) } } ) }
Sort an array of django versions low to high.
Sort an array of django versions low to high .