Improve sortavcs

- performance improvements
- handle missing AVC case

Signed-off-by: Lon Hohberger <lhh@redhat.com>