To rearrange the icons on the Dock, click and hold the icon, then drag it to a new position. You can also arrange them alphabetically or by most recently used applications by going to "Options" > "Sort by."