fixing tracking branches sort in resolved.sh