3 versions of sorted_data.py