Sort a Map or Array from the editor

I was wondering if it is possible to click a button and order a Map or a Matrix from the editor in the same way that we insert an element.
Thank you.