BI-SORTED ORDERS AND APPLICATIONS