improved mysql exception sorter
xxx
improved mysql exception sorter