add sorting

Signed-off-by: Blazej Mirowski <blazej.mirowski@tieto.com>