adding sort feature for repo