I have an array and I am sorting it but I need to sort everything except one element of my array.
My array is:
var Comparison = [ {key: \"None\", val
const array1 = this.Comparison.filter(e => e.key === 'None'); const array2 = this.Comparison .filter(e => e.key !== 'None') .sort((a, b) => a.key.localeCompare(b.key)); this.Comparison = [].concat(array1, array2);