sorting works
added enum