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