boolean sortAscending = listDto.isSortAscending();
productService.sortProducts(allProducts, sortBy, sortAscending);
cache.getProductsAdapter().setProductsList(allProducts);
cache.getProductsAdapter().notifyDataSetChanged();
reorderProductViewBySelection();
<BUG>updateTotals();
}</BUG>
public void updateTotals()
{
TotalDto totalDto = productService.computeTotals(cache.getProductsAdapter().getProductsList());

boolean sortAscending = listDto.isSortAscending();
productService.sortProducts(allProducts, sortBy, sortAscending);
cache.getProductsAdapter().setProductsList(allProducts);
cache.getProductsAdapter().notifyDataSetChanged();
reorderProductViewBySelection();
updateTotals();
})
.subscribe();
}
public void updateTotals()
{
TotalDto totalDto = productService.computeTotals(cache.getProductsAdapter().getProductsList());
