modified proposals controller index action

Modified the index action to sort the proposals based on the votes except when the new filter is applied.