Move sidebar with “Shop By”, “Compare”, “Categories” to other side

Refers to left sidebar:

<reference name="left">

Refers to right sidebar:

reference name="right">

Changes should happen in the catalog.xml file of your theme

Ordering within a block

before="<element-name>" or after="<element-name>"

before="-" or after="-"