hard drive – How to arrange data on Partitions Physical Storage

I want to move data on the partition to the start of the partition physically. The files are scattered on the whole partition, free spaces are in between. I want that all data should be on one side and free space on one side.

Here is the explanation of the data on the partition. White dots free space and others are data.

Storage Distribution