=content_for :h1 do
  #type Catalog
  #name
    =@catalog.title
    -if user_signed_in?
      %span.action
        =link_to image_tag("fassets_core/edit.png"), edit_catalog_path(@catalog)
#sidebar.fassets_core
  -if user_signed_in?
    .collapsible
      %h2.title Add Facet
      =form_for [@catalog, Facet.new], :url => catalog_facets_path(@catalog, Facet.new) do |f|
        =render :partial => "facets/form", :object => f
        =submit_tag "Create"
  %ul#facets{"data-update-url" => sort_catalog_facets_url(@catalog)}
    =render :partial => "facet", :collection => @catalog.facets.all(:order => "position ASC")

#catalog_main
  -if @filter.empty?
    %h2 Assets
  -else
    %h2
      Filtered Assets
    #filter
      %ul
        =render :partial => "filter_item", :collection => Label.in(@filter)
        %li{:style => "clear:both"}=link_to "clear filter", catalog_path(@catalog), :class => "icon remove"
  %ul#assets
    =render :partial => "shared/asset", :collection => @assets, :locals => {:tp => nil}


=content_for :h1 do
  #type Catalog
  #name
    =@catalog.title
    -if user_signed_in?
      %span.action
        =link_to image_tag("fassets_core/edit.png"), edit_catalog_path(@catalog)
#sidebar.fassets_core
  -if user_signed_in?
    .collapsible
      %h2.title Add Facet
      =form_for [@catalog, Facet.new], :url => catalog_facets_path(@catalog, Facet.new) do |f|
        =render :partial => "facets/form", :object => f
        =submit_tag "Create"
  %ol#facets{"data-update-url" => sort_catalog_facets_url(@catalog)}
    =render :partial => "facet", :collection => @catalog.facets.all(:order => "position ASC")

#catalog_main
  -if @filter.empty?
    %h2 Assets
  -else
    %h2
      Filtered Assets
    #filter
      %ul
        =render :partial => "filter_item", :collection => Label.in(@filter)
        %li{:style => "clear:both"}=link_to "clear filter", catalog_path(@catalog), :class => "icon remove"
  %ul#assets
    =render :partial => "shared/asset", :collection => @assets, :locals => {:tp => nil}


Change facet list from unordered to ordered
Change facet list from unordered to ordered

Preserves semantic as facets are ordered from this feature on
