<div>
	<table class="table table-striped">
		<thead>
		<tr>
			<th ng-click="doSort('name')">Name</th>
			<th ng-click="doSort('city')">City</th>
			<th ng-click="doSort('ordersTotal')">Total order</th>
			<th ng-click="doSort('joined')">Joined</th>	
			<th>&nbsp;</th>		
		</tr>	
		</thead>
		<tbody>
			<tr  ng-repeat="cust in customers | filter:customerFilter | orderBy:sortBy:reverse">
				<td> {{cust.name}} </td>
				<td> {{cust.city}} </td>				
				<td> {{cust.orderTotal | currency }} </td>
				<td> {{cust.joined | date:'dd-MM-yyyy' }} </td>
				<td> <a href='#/orders/{{ cust.id }}'>View Orders</a> </td>
			</tr>
		</tbody>		
	</table>
	<br />
	<span>Total customers: {{ customers.length }}</span>

</div>

<div>
	<table class="table table-striped">
		<thead>
		<tr>
			<th ng-click="doSort('name')">Name</th>
			<th ng-click="doSort('city')">City</th>
			<th ng-click="doSort('orderTotal')">Total order</th>
			<th ng-click="doSort('joined')">Joined</th>	
			<th>&nbsp;</th>		
		</tr>	
		</thead>
		<tbody>
			<tr  ng-repeat="cust in customers | filter:customerFilter | orderBy:sortBy:reverse">
				<td> {{cust.name}} </td>
				<td> {{cust.city}} </td>				
				<td> {{cust.orderTotal | currency }} </td>
				<td> {{cust.joined | date:'dd-MM-yyyy' }} </td>
				<td> <a href='#/orders/{{ cust.id }}'>View Orders</a> </td>
			</tr>
		</tbody>		
	</table>
	<br />
	<span>Total customers: {{ customers.length }}</span>

</div>

Fix typo, sorting by orderTotal now works
Fix typo, sorting by orderTotal now works
