<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>pnotepad.org forums &#187; Topic: Magic folder - directory sorting by name</title>
		<link>http://pnotepad.org/forums/topic/210</link>
		<description>Programmer&#039;s Notepad Forums</description>
		<language>en-US</language>
		<pubDate>Wed, 08 Feb 2012 23:52:02 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://pnotepad.org/forums/search.php</link>
		</textInput>
		<atom:link href="http://pnotepad.org/forums/rss/topic/210" rel="self" type="application/rss+xml" />

		<item>
                        <title>Magic folder - directory sorting by name (bannerz2000)</title>
			<link>http://pnotepad.org/forums/topic/210#post-768</link>
			<pubDate>Tue, 24 Apr 2007 22:11:48 +0000</pubDate>
			<dc:creator>bannerz2000</dc:creator>
			<guid isPermaLink="false">768@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;I found the place in your code where to put the sort&#60;/p&#62;
&#60;p&#62;...&#60;/p&#62;
&#60;p&#62;// custom list sort&#60;br /&#62;
static bool MyCompare(Folder *lhs, Folder *rhs)&#60;br /&#62;
{&#60;br /&#62;
        // sort by name ascending&#60;br /&#62;
	return ( strcmp(lhs-&#38;gt;GetName(), rhs-&#38;gt;GetName())==-1 );&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;const FOLDER_LIST&#38;#38; MagicFolder::GetFolders()&#60;br /&#62;
{&#60;br /&#62;
	if(!read) {&#60;br /&#62;
		Refresh();&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;        // This is not optimal but it works...&#60;br /&#62;
	children.sort(MyCompare);&#60;br /&#62;
	return children;&#60;br /&#62;
}&#60;br /&#62;
....&#60;br /&#62;
Maybe it is a good idea to put something similar for files too.&#60;/p&#62;
&#60;p&#62;Best regards
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>Magic folder - directory sorting by name (bannerz2000)</title>
			<link>http://pnotepad.org/forums/topic/210#post-767</link>
			<pubDate>Tue, 24 Apr 2007 20:36:55 +0000</pubDate>
			<dc:creator>bannerz2000</dc:creator>
			<guid isPermaLink="false">767@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;ok, here it is&#60;br /&#62;
&#60;a href=&#34;http://img49.imageshack.us/my.php?image=picturedr8.png&#34; rel=&#34;nofollow&#34;&#62;http://img49.imageshack.us/my.php?image=picturedr8.png&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;with file names&#60;br /&#62;
&#60;a href=&#34;http://img159.imageshack.us/my.php?image=picture2bh5.png&#34; rel=&#34;nofollow&#34;&#62;http://img159.imageshack.us/my.php?image=picture2bh5.png&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;thank you
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>Magic folder - directory sorting by name (simon)</title>
			<link>http://pnotepad.org/forums/topic/210#post-766</link>
			<pubDate>Tue, 24 Apr 2007 17:24:50 +0000</pubDate>
			<dc:creator>simon</dc:creator>
			<guid isPermaLink="false">766@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;It does for me, can you give me an example of what you're seeing?
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>Magic folder - directory sorting by name (bannerz2000)</title>
			<link>http://pnotepad.org/forums/topic/210#post-759</link>
			<pubDate>Mon, 23 Apr 2007 17:17:51 +0000</pubDate>
			<dc:creator>bannerz2000</dc:creator>
			<guid isPermaLink="false">759@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Is there any easy way to sort Magic folder's directory list by directory name?&#60;br /&#62;
thanx.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>

