Skip to content

Commit b9593c5

Browse files
committed
list the distros properly. remove shuffling
1 parent cb56164 commit b9593c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

librehunt.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ function distro(){
773773
customtweaks = optionSelected("customtweaks");
774774

775775
// shuffle the lists inside the list (order of distros)
776-
distros = shuffle(distros);
776+
//distros = shuffle(distros);
777777
// this will be the order of user input, and distro output
778778
//var UserOptions=[linuxexpertise,oldnew,gaming,updates,lookalike,touch,popularity,customtweaks];
779779
var SelectedDistros = [];
@@ -859,7 +859,7 @@ function distro(){
859859
SelectedDistros[i].matches.push(SelectedDistros[i].matches[0]+SelectedDistros[i].matches[1]+SelectedDistros[i].matches[2]+SelectedDistros[i].matches[3]+SelectedDistros[i].matches[4]+SelectedDistros[i].matches[5]);
860860
//sort the selected distro db by ascending order by the total part
861861
}
862-
SelectedDistros = SelectedDistros.sort((a, b) => parseFloat(a.matches[6]) - parseFloat(b.matches[6]));
862+
SelectedDistros = SelectedDistros.sort((a, b) => parseFloat(a.matches[7]) - parseFloat(b.matches[7]));
863863

864864
// only take first 20 lists in the selected distro db list
865865
SelectedDistros.splice(20);

0 commit comments

Comments
 (0)