sort

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
add if not null

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
update statistics

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>