Currently I have a JTable that uses RowSorter, but when I click the header that I want it to sort in, it displays the rows in a weird order
JTable
RowSorter
You're treating the row contents as text. Your sort order is alphabetical rather than numerical. If you treat the contents as numbers it should work itself out.