Fixing the list view with more complex table logic. adding custom sort.