You can also just use something like GETSEL (in Express Tools) to select all items on the layer, then do a "Move to Back" and select "P" (for previous selection set).
Around here, we have GETSEL assigned to SHIFT+CTRL+G and Move to Back assigned to CTRL+B, so the operation is very fast, and takes no custom coding.
However, custom coding like Tony's is even quicker.