JSFiddle - React, Tailwind, and code Playground
by qustosh
JavaScript
//TEST SORTING STRINGS CONTAINING NUMBERS
var str1 = "0101";
var str2 = "0111";
var str3 = "2000";
//var comp = [str2, str1, str3].sort();
//var comp = [str1, str3].sort();
//it does work
var comp = [str3, str1].sort();
console.log(comp);