function defaultSort(arrayOfTuples) {
  return arrayOfTuples
    .sort(([, a], [, z]) => {
      if (a === z) return 0
      if (a === null) return -1
      if (z === null) return 1
      return bigSign(a - z)
    })
    .map(([className]) => className)
    .join(' ')
}
/**
 * This is a function that the prettier-plugin-tailwindcss would use. It would
 * do the actual sorting based on the classes and order we return from `getClassOrder`.
 *
 * This way the actual sorting logic is done in the plugin which allows you to
 * put unknown classes at the end for example.
 *
 * @param {Array<[string, bigint]>} arrayOfTuples
 * @returns {string}
 */
This is a function that the prettier-plugin-tailwindcss would use. It would
do the actual sorting based on the classes and order we return from `getClassOrder`.

This way the actual sorting logic is done in the plugin which allows you to
put unknown classes at the end for example.

@param {Array<[string, bigint]>} arrayOfTuples
@returns {string}
This is a function that the prettier - plugin - tailwindcss would use . It would do the actual sorting based on the classes and order we return from ` getClassOrder ` . This way the actual sorting logic is done in the plugin which allows you to put unknown classes at the end for example . @param { Array< [ string bigint ] > } arrayOfTuples @returns { string }
function defaultSort(arrayOfTuples) {
  return arrayOfTuples
    .sort(([, a], [, z]) => {
      if (a === z) return 0
      if (a === null) return -1
      if (z === null) return 1
      return bigSign(a - z)
    })
    .map(([className]) => className)
    .join(' ')
}
function defaultSort ( arrayOfTuples ) { return arrayOfTuples . sort ( ( [ , a ] , [ , z ] ) => { if ( a === z ) return 0 if ( a === null ) return - 1 if ( z === null ) return 1 return bigSign ( a - z ) } ) . map ( ( [ className ] ) => className ) . join ( ' ' ) }
This is a function that the prettier-plugin-tailwindcss would use.
This is a function that the prettier - plugin - tailwindcss would use .