Gruntfile.js
function pathsort(paths, sep, algorithm) {
  sep = sep || '/'

  return paths.map(function(el) {
    return el.split(sep)
  }).sort(algorithm || levelSorter).map(function(el) {
    return el.join(sep)
  })
}
function pathsort(paths, sep, algorithm) {
  sep = sep || '/'

  return paths.map(function(el) {
    return el.split(sep)
  }).sort(algorithm || levelSorter).map(function(el) {
    return el.join(sep)
  })
}
function pathsort ( paths , sep , algorithm ) { sep = sep || '/' return paths . map ( function ( el ) { return el . split ( sep ) } ) . sort ( algorithm || levelSorter ) . map ( function ( el ) { return el . join ( sep ) } ) }
Sort a list of paths
Sort a list of paths