sort by category in export fixes: #2870

fixed for now ;/