Use last occurrence item for problems sorting

Related to rhbz#947870

Signed-off-by: Jakub Filak <jfilak@redhat.com>
Signed-off-by: Martin Milata <mmilata@redhat.com>