new-data-format - added sorting and bound detection