lib/utils/utils.js
function findUnorderedProperty(arr) {
  for (let i = 0; i < arr.length - 1; i++) {
    if (arr[i].order > arr[i + 1].order) {
      return arr[i];
    }
  }

  return null;
}
function findUnorderedProperty(arr) {
  for (let i = 0; i < arr.length - 1; i++) {
    if (arr[i].order > arr[i + 1].order) {
      return arr[i];
    }
  }

  return null;
}
function findUnorderedProperty ( arr ) { for ( let i = 0 ; i < arr . length - 1 ; i ++ ) { if ( arr [ i ] . order > arr [ i + 1 ] . order ) { return arr [ i ] ; } } return null ; }
Find property that is in wrong order

@param  {Object[]} arr Properties with their order value
@return {Object}       Unordered property or null
Find property that is in wrong order