MCPcopy Create free account
hub / github.com/BuilderIO/SSDiff / sortFilesBasedOnDifference

Method sortFilesBasedOnDifference

packages/ssdiff/src/index.ts:222–225  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

220 }
221 }
222 async sortFilesBasedOnDifference() {
223 const sortedMap = new Map([...this.fileNameDifferenceMap.entries()].sort((a, b) => b[1] - a[1]));
224 return sortedMap;
225 }
226 /**
227 * Returns the sorted result map with fileName and pixel difference percentage
228 *

Callers 1

resultMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected