[FEATURE] Create external accounts module

I wonder if we can use the "sortBy" arity format here and just pass "a.id" instead.