Updated getLabelable so that it sorts the frames