WIP fixing factories
working tests
added sortable_by method
cleanup
fixed ActiveRecord extension
prettier syntax for sort_by