Why this sort task does not perform in MS Edge, but it acts very well in the firefox ?
<script type="text/javascript">"use strict";
const arr = ["stella","gamma","area","benzyl","xtra"];
console.log(arr.sort((x,y)=>x>y));
console.log(arr.sort((x,y)=>x-y));
// MS Edge Version 105.0.1343.42 (Version officielle) (64 bits) :
// (5) ['stella', 'gamma', 'area', 'benzyl', 'xtra']
// (5) ['stella', 'gamma', 'area', 'benzyl', 'xtra']
// Firefox 105.0 (64 bits) :
// Array(5) [ "area", "benzyl", "gamma", "stella", "xtra" ]
// Array(5) [ "area", "benzyl", "gamma", "stella", "xtra" ]
</script>