<div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr">Am Sa., 16. Feb. 2019, 21:30 hat AlexeyT <<a href="mailto:aaa5500@ya.ru">aaa5500@ya.ru</a>> geschrieben:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello. Can you pls, add Sorted property to TFPSList / TFPGList (Add() <br>
method must sort newly added item), and also Find method (which must use <br>
binary search in Sorted case, and use plain loop if not sorted)<br></blockquote></div><div dir="auto"><br></div><div dir="auto"><span style="font-family:sans-serif">You could also check whether rtl-generics already provides what you need. </span><br></div><div dir="auto"><br></div><div dir="auto">Just in case anyone wants to add this (I won't): this also requires properties for a comparer and a compare algorithm (essentially the arguments to Sort) as TFPGList<> should not require the presence of a comparison operator in the generic parameter type. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div>