<commit_before>class TagsController < ApplicationController
  
  # GET /tags
  def index
    @tags = current_user.items.tag_counts :order=>'count desc'
  end
  
  # GET /tags/:id
  def show
    @tag = Tag.find params[:id]
    @items = current_user.items.find_tagged_with @tag
  end
  
end<commit_msg>Newest items at top of tag show page.<commit_after>class TagsController < ApplicationController
  
  # GET /tags
  def index
    @tags = current_user.items.tag_counts :order=>'count desc'
  end
  
  # GET /tags/:id
  def show
    @tag = Tag.find params[:id]
    @items = current_user.items.find_tagged_with @tag, :order=>'date desc'
  end
  
end
{'fraction_non_alphanumeric': 0.10387596899224806, 'fraction_numerical': 0.0, 'mean_word_length': 3.2781456953642385, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '4420553', 'n_tokens_mistral': 225, 'n_tokens_neox': 224, 'n_words': 56}