sorting and filtering draft

Signed-off-by: Ondrej Koch <o.koch@zerusnet.com>