Added sorting ability to cattle tables

Users can now sort tables alphabetically using button that are to the
top left of the table. The medicated.js and pregnant.js files now
search for their respected arguments directly through the mongoose
find. This allows for the sort_doc.js file containing the sort module
to be used on their outputs.