sort and bootsrap validator