Nothing. If you SELECT data from a database, and add an ORDER BY clause, it just affects the ordering of the data that is returned to the user, but the data in the database remains unaltered.
A UPS or Uninterruptable Power supply makes
sure that you have backup in case there is a power outage in your area. It
provides ample time for you to save all files before shut down.