Question about displaying exhibits in a theme

I’m using the following function to display exhibits on the homepage of my site. I’m expect to see the three most recent exhibits. Instead I’m seeing the three oldest exhibits.

$exhibits = get_records('Exhibit', array('recent' => true), 3);

Does anyone have a suggestion for how I can display recent exhibits?

Thanks.

What versions of Omeka and Exhibit Builder are you using? I think the issue here is just that recent doesn’t have any effect at all, so you’re getting the default sorting. sort_field and sort_dir are the current way to sort records.

Thanks for your help. The following worked for me:

$exhibits = get_records('Exhibit', array('featured' => true,'sort_field' => 'added', 'sort_dir' => 'd'), 3);