Daniel is correct. The file is ~/Library/Preferences/com.apple.sidebarlists.plist However, if you open the file in a text editor like TextWrangler, it'll be easier to edit and rearrange the list. Also, you must log out before the changes take effect.
–
thingEverySep 25 '12 at 19:18