implemented sorting of account IDs from lowest to highest.