contrib: sort.sh: optimize feed processing and update for ARM hf changes

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>