is there something I can add to this formula so I can sort by at runtime in my app?

VB Code:
  1. rpt.DataDefinition.RecordSelectionFormula = "{pcms_billing_period.end_billing_date} =#" & tranPeriodEnd & "#"