Can comments by a logged-in user be displayed at the top?

Đã có trọn bộ đề thi thử THPT Quốc Gia 2022 các môn: vip.dethihsg247.com
QUẢNG CÁO: Đổi thẻ cào thành tiền mặt min rút 10k tại đây

EDIT: I answered my own question! I was able to do this using 3 lines of CSS – thanks, flexbox! leaving this here in the hopes that it helps someone else someday 🙂

— original question —

Working on a site where the client wants to allow commenting on posts by both members (who will be able to log in to the site) and nonmembers. They would like comments by a logged-in user to be displayed at the top of the comments list, and “guest” comments to come up below.

Is there an easy way to do this without involving a plugin?

I’m aware of the “byuser” CSS class which allows for different styling of comments by a logged-in user. This will be helpful. But wondering if there’s also any way to re-order the comments.

Thanks in advance for any help!

Xin chào các bạn và quý Thầy Cô. Hãy nhập từ khóa mình muốn vào ô tìm kiếm trên Website để tìm kiếm mọi thứ hoặc trên google các bạn hãy nhập từ khóa + dethihsg247.com để tìm kiếm các bài viết của chúng tôi nhé.
  • Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
  • Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
  • Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.

Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com