Project mappings for improved sorting

Preparing projects for user sorting. Added methods to numerically index
flag and stage.
Search sort and ordering methods
Project sorting drop down button

Added project sort drop down button to projects#index. Sorting by num,
title, date (updated at), stage, and flag. Changing either stage or
sorting using drop downs will not alter other params. This allows user
to switch between stage and sorting.
Project sorting