Hi,
You can search using the checkbox isChecked property right against the appropriate field. A query might look something like this:
wixData.query("myCollection")
.eq("myService", $w("#myCheckbox").checked;)
.find()
.then( (results) => {
let items = results.items;
// do stuff with items
} )
.catch( (error) => {
let errorMsg = error.message;
let code = error.code;
} );
For sorting, you can append either ascending or descending conditions. There are many other options available which will let you create just about any query that you want.
Have fun,
Yisrael