Commit 13bf34b5 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent bd5091d9
......@@ -118,7 +118,7 @@ async function readFile(name)
let sortByProfit=[]
let file = await fs.readFileSync('./result/' + name + '/allDataSortedByProfit.json', 'utf8')
file = JSON.parse(file)
file = _.orderBy(file, sort, ['desc']);
// file = _.orderBy(file, sort, ['desc']);
for (let j = 0; j < file.length; j++) {
sortByProfit.push(file[j])
......@@ -138,7 +138,7 @@ async function readFile(name)
// sortByCompound.push(file[j])
// }
return {sortByProfit:sortByProfit}
return {sortByProfit:file}
}
function createfileADV(filename, data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment