Make default reports use a cast of the priority value as int for proper sorting when more than 10 values are used.
Make default reports use a cast of the priority value as int for proper sorting when more than 10 values are used.

Contributed by vnaum on #4715, thanks!

pkdevbox/trac,pkdevbox/trac,pkdevbox/trac,pkdevbox/trac