diff --git a/refpolicy/Changelog b/refpolicy/Changelog
index d0929ed..6f1956a 100644
--- a/refpolicy/Changelog
+++ b/refpolicy/Changelog
@@ -1,3 +1,4 @@
+	* Fix comparison bug in fc_sort.
 	* Fix handling of ordered and unordered HTML lists.
 	* Corenetwork now supports multiple network interfaces having the
 	  same type.
diff --git a/refpolicy/support/fc_sort.c b/refpolicy/support/fc_sort.c
index b969479..6c43035 100644
--- a/refpolicy/support/fc_sort.c
+++ b/refpolicy/support/fc_sort.c
@@ -104,7 +104,7 @@ int fc_compare(file_context_node_t *a, file_context_node_t *b)
 	 *  length than the other. */
 	if (a->str_len < b->str_len)
 		return -1;
-	if (b->str_len < b->str_len)
+	if (b->str_len < a->str_len)
 		return 1;
 
 	/* Check to see if either a or b has a specified type