<commit_before>class JobOrdersController < ApplicationController
  before_filter :user_is_admin?, :except => [:index]

  def index
    if params[:archived] == "yes"
      @job_orders = JobOrder.where(:archived => true)
      @title = 'Archived job orders'
    else
      @job_orders = JobOrder.where(:archived => false)<commit_msg>fixed order on job_order index<commit_after>class JobOrdersController < ApplicationController
  before_filter :user_is_admin?, :except => [:index]

  def index
    if params[:archived] == "yes"
      @job_orders = JobOrder.where(:archived => true).order('code')
      @title = 'Archived job orders'
    else
      @job_orders = JobOrder.where(:archived => false).order('code')
{'fraction_non_alphanumeric': 0.1272984441301273, 'fraction_numerical': 0.0, 'mean_word_length': 4.323308270676692, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '5203522', 'n_tokens_mistral': 215, 'n_tokens_neox': 211, 'n_words': 49}