esqueleto-compatible (?) default filtering and sorting code