Fix sorting on columns of prisoners table in prisoners index view