Refactoring violations graph

Now API is sorting violations data