Fix bug with sorting and display of district available capacity