From 0e6df30a4292e76478737189a1dbefafa31aed39 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Tue, 2 Jul 2024 21:52:04 +0200 Subject: [PATCH] add a Finder::order_by(...) method --- src/finder.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/finder.h b/src/finder.h index eb8ce78..fc3250f 100644 --- a/src/finder.h +++ b/src/finder.h @@ -967,6 +967,19 @@ public: } + Finder & order_by(const wchar_t * sql) + { + if( out_stream ) + { + (*out_stream) << L" ORDER BY "; + (*out_stream) << sql; + (*out_stream) << ' '; + } + + return *this; + } + + /* * like */