core/lib: allow for sorting based on downloaded percent