<commit_before>class VehicleMaintenanceCompliancesController < ApplicationController
  load_and_authorize_resource :vehicle
  before_action :load_vehicle_maintenance_compliance
  
  include DocumentAssociableController
  
  respond_to :html, :js

  def index
    @vehicle_maintenance_compliances = @vehicle.vehicle_maintenance_compliances.order(:compliance_mileage)
    @readonly = params[:readonly] == 'true'<commit_msg>Fix maintenance compliance sorting order[RPII-260]<commit_after>class VehicleMaintenanceCompliancesController < ApplicationController
  load_and_authorize_resource :vehicle
  before_action :load_vehicle_maintenance_compliance
  
  include DocumentAssociableController
  
  respond_to :html, :js

  def index
    @vehicle_maintenance_compliances = @vehicle.vehicle_maintenance_compliances.order(due_mileage: :asc)
    @readonly = params[:readonly] == 'true'
{'fraction_non_alphanumeric': 0.06385404789053592, 'fraction_numerical': 0.0034207525655644243, 'mean_word_length': 7.3619047619047615, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4152231', 'n_tokens_mistral': 268, 'n_tokens_neox': 234, 'n_words': 42}