Skip to content
Snippets Groups Projects
Commit a0c0f3ff authored by Stephan Porada's avatar Stephan Porada :speech_balloon:
Browse files

Sort result files

parent 020f99d9
No related branches found
No related tags found
No related merge requests found
......@@ -177,6 +177,7 @@
for (let operation of patch) {
/* "/jobId/valueName" -> ["jobId", "valueName"] */
console.log(operation.value);
pathArray = operation.path.split("/").slice(1);
if (pathArray[0] != this.jobId) {continue;}
switch(operation.op) {
......@@ -215,9 +216,19 @@
setResults(results) {
let resultsElement;
results.sort(function (a, b) {
var filenameA = a.filename.toUpperCase();
var filenameB = b.filename.toUpperCase();
if (filenameA < filenameB) {
return -1;
}
if (filenameA > filenameB) {
return 1;
}
return 0;
});
resultsElement = document.getElementById("results");
console.log(results);
for (let result of results) {
resultsElement.insertAdjacentHTML(
"beforeend",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment