added comment how sorting works.