servidor json
json-server --watch db.json
Disgusted Dragonfly
json-server --watch db.json
Yahooo
data = ["zzz", "aaa", "aza", "zaa"];
filteredData = data.sort((a, b) => a > b ? 1 : -1);
// console.log("filteredData", filteredData)
Yahooo
Array
(
[0] => 3
[1] => Abebe
[2] => 5
[3] => 8
[4] => 60
[5] => 1
[6] => Kebede
)
var randomdata = [1,3,5,20,4,2];
randomdata.sort((a, b)=> a.compareTo(b));
print(randomdata);