<select>
<option value="">Date</option>
<option value="">Name</option>
<option value="">Email</option>
</select>
$scope.sortBy = {
date: function () {
},
name: function () {
console.log($scope.dataFromMySQL);
},
email: function () {
}
};