Elements not sorting by grid - fixed, after apply elements are locked, when unlocked custom controls stop being draggable. Corrected markup.