Split work into chunks to improve UI responsiveness on large repos; update sort to match GitHub's algorithm