code: public void updatePathOrder(int profileId, int[] pathOrder) {
          for (int i = 0; i < pathOrder.length; i++) {
              EditService.updatePathTable(Constants.PATH_PROFILE_PATH_ORDER, (i + 1), pathOrder[i]);
          }
      }
docs: Updates the path_order column in the table, loops though the pathOrder array, and changes the value to the loop
  index+1 for the specified pathId
  
  @param profileId ID of profile
  @param pathOrder array containing new order of paths