order an array of objectes typed CollegioVerbale {
id: CollegioVerbaleID;
idRicUdien: number;
tipoMag: string;
gradoMag: number;
magistrato?: AnagraficaMagistratoCollegio;
riserva: boolean;
relatore: boolean;
operatore: number;
comparso: boolean;
oggi: number;
}
put first all the objects with tipoMag === ‘PRE’ then all the objects with relatore true and order them by gradoMag ascendant  then all the objects with tipoMag===‘CON’ and order them by gradoMag ascendant and then at the bottom of array all the objects with riserva true and order them by gradoMag ascendant