module.controller('HomeView', [
	'$scope', 'parties', 'volume', 'pageService', function ($scope, parties, volume, page) {
		page.display.title = page.constants.message('page.title.home');

		var lastName = function (s) {
			if (!s) {
				return '';
			}
			return s.substr(s.lastIndexOf(' '));

		}

		angular.forEach(parties, function (v, k) {
			v.lastName = lastName(v.name);
		});
		$scope.parties = page.$filter('toArray')(parties, 'lastName');
		$scope.volume = volume;

	}
]);

@@ -221,47 +221,18 @@
 %0A%09%09%09
-if (!s) %7B%0A%09%09%09%09return '';%0A%09%09%09%7D%0A%09%09%09
 return
+ s ?
  s.s
@@ -255,19 +255,25 @@
 xOf(' ')
-);%0A
++1) : '';
 %0A%09%09%7D%0A%0A%09%09

Fix last-name sort for no spaces