function SortingController(){

}
SortingController.prototype = {
  getFormData: function(form){
   var formData = {};
   formData.type = $(form).attr("method");
   formData.url = $(form).attr("action");
   formData.data = $(form).serialize();
   return formData;
  },

};
function SortingController(){
  this.view = new RiverView();
}
SortingController.prototype = {
  orderRiver: function(eventTarget){
    var that = this;
    $.ajax($(eventTarget).attr("href")).done(function(newRiverDiv){
      that.view.refreshRiver(newRiverDiv);
    }).fail(function(error){
      alert(error.responseText);
    });
  }
};
Add orderRiver method to SortingController
Add orderRiver method to SortingController
