loss1.3ordered function

General loss criterion