verification and sorting functionalities

Signed-off-by: Victor Gonzalez <victor.gonzalezro@gmail.com>