Is there any way to have maps automatically sorted in blueprints?

It can be done in blueprints. Though, you need to create a new function for every type of map.

Again, please clarify what you are trying to do. Not that you are trying to sort, but why you are trying to sort.