code: function(a, b) {
            let aVal = a[sortField];
            let bVal = b[sortField];
            return (!aVal && bVal) || (aVal < bVal) ? -1 : (aVal && !bVal) || (aVal > bVal) ? 1 : 0;
          }
docs: Sorting array by `sortField` and asc.