Bug551 fixed, commodities and accounts now sort

Added two compare structs for std::map to use.  I tried to override
the < operator got a clean compile but map wasn't picking it up, I
couldn't figure out why so I took the less elegant route.