Select concrete partner permissions first

Add additional sorting on the partner id column.