```dart
Future<void> fetchPostsFirstInAscendingRatingOrderThenDescendingTitleOrder() async {
  final posts = await Amplify.DataStore.query(
    Post.classType,
    sortBy: [
      Post.RATING.ascending(),
      Post.TITLE.descending(),
    ],
  );
  print('Posts: $posts');
}
```
