sort invoice