Sort priority as integer