{
	"issue": {
		"url": "https://api.github.com/repos/laurent22/joplin/issues/13986",
		"repository_url": "https://api.github.com/repos/laurent22/joplin",
		"labels_url": "https://api.github.com/repos/laurent22/joplin/issues/13986/labels{/name}",
		"comments_url": "https://api.github.com/repos/laurent22/joplin/issues/13986/comments",
		"events_url": "https://api.github.com/repos/laurent22/joplin/issues/13986/events",
		"html_url": "https://github.com/laurent22/joplin/pull/13986",
		"id": 3760783536,
		"node_id": "PR_kwDOBLftOs66gP0H",
		"number": 13986,
		"title": "Desktop: Fixes #13856: Place new notes at top when custom sort is active",
		"user": {
			"login": "darshan02parmar",
			"id": 180026762,
			"node_id": "U_kgDOCrr9ig",
			"avatar_url": "https://avatars.githubusercontent.com/u/180026762?v=4",
			"gravatar_id": "",
			"url": "https://api.github.com/users/darshan02parmar",
			"html_url": "https://github.com/darshan02parmar",
			"followers_url": "https://api.github.com/users/darshan02parmar/followers",
			"following_url": "https://api.github.com/users/darshan02parmar/following{/other_user}",
			"gists_url": "https://api.github.com/users/darshan02parmar/gists{/gist_id}",
			"starred_url": "https://api.github.com/users/darshan02parmar/starred{/owner}{/repo}",
			"subscriptions_url": "https://api.github.com/users/darshan02parmar/subscriptions",
			"organizations_url": "https://api.github.com/users/darshan02parmar/orgs",
			"repos_url": "https://api.github.com/users/darshan02parmar/repos",
			"events_url": "https://api.github.com/users/darshan02parmar/events{/privacy}",
			"received_events_url": "https://api.github.com/users/darshan02parmar/received_events",
			"type": "User",
			"user_view_type": "public",
			"site_admin": false
		},
		"labels": [],
		"state": "closed",
		"locked": false,
		"assignees": [],
		"milestone": null,
		"comments": 5,
		"created_at": "2025-12-24T17:53:42Z",
		"updated_at": "2026-01-07T13:12:39Z",
		"closed_at": "2026-01-07T11:53:22Z",
		"assignee": null,
		"author_association": "NONE",
		"active_lock_reason": null,
		"draft": false,
		"pull_request": {
			"url": "https://api.github.com/repos/laurent22/joplin/pulls/13986",
			"html_url": "https://github.com/laurent22/joplin/pull/13986",
			"diff_url": "https://github.com/laurent22/joplin/pull/13986.diff",
			"patch_url": "https://github.com/laurent22/joplin/pull/13986.patch",
			"merged_at": null
		},
		"body": "### Summary\r\nFixes an inconsistency in desktop custom sort behavior where newly created notes were inserted at the bottom of the list.\r\n\r\nWhen custom sort is active:\r\n- New notes are now inserted at the top of the list (or after uncompleted to-dos when `uncompletedTodosOnTop` is enabled)\r\n- Behavior now matches Android\r\n- To-dos remain unchanged and continue to work correctly\r\n- Other sort modes are unaffected\r\n\r\n### Testing\r\n- Custom sort → new note appears at top\r\n- Custom sort → new to-do appears at top\r\n- Other sort modes unchanged\r\n- App restart preserves order\r\n- No regression in drag behavior\r\n\r\nFixes #13856  \r\nRelated to #13857\r\n",
		"closed_by": {
			"login": "laurent22",
			"id": 1285584,
			"node_id": "MDQ6VXNlcjEyODU1ODQ=",
			"avatar_url": "https://avatars.githubusercontent.com/u/1285584?v=4",
			"gravatar_id": "",
			"url": "https://api.github.com/users/laurent22",
			"html_url": "https://github.com/laurent22",
			"followers_url": "https://api.github.com/users/laurent22/followers",
			"following_url": "https://api.github.com/users/laurent22/following{/other_user}",
			"gists_url": "https://api.github.com/users/laurent22/gists{/gist_id}",
			"starred_url": "https://api.github.com/users/laurent22/starred{/owner}{/repo}",
			"subscriptions_url": "https://api.github.com/users/laurent22/subscriptions",
			"organizations_url": "https://api.github.com/users/laurent22/orgs",
			"repos_url": "https://api.github.com/users/laurent22/repos",
			"events_url": "https://api.github.com/users/laurent22/events{/privacy}",
			"received_events_url": "https://api.github.com/users/laurent22/received_events",
			"type": "User",
			"user_view_type": "public",
			"site_admin": false
		},
		"reactions": {
			"url": "https://api.github.com/repos/laurent22/joplin/issues/13986/reactions",
			"total_count": 0,
			"+1": 0,
			"-1": 0,
			"laugh": 0,
			"hooray": 0,
			"confused": 0,
			"heart": 0,
			"rocket": 0,
			"eyes": 0
		},
		"timeline_url": "https://api.github.com/repos/laurent22/joplin/issues/13986/timeline",
		"performed_via_github_app": null,
		"state_reason": null
	},
	"comments": [
		{
			"url": "https://api.github.com/repos/laurent22/joplin/issues/comments/3690312235",
			"html_url": "https://github.com/laurent22/joplin/pull/13986#issuecomment-3690312235",
			"issue_url": "https://api.github.com/repos/laurent22/joplin/issues/13986",
			"id": 3690312235,
			"node_id": "IC_kwDOBLftOs7b9bIr",
			"user": {
				"login": "github-actions[bot]",
				"id": 41898282,
				"node_id": "MDM6Qm90NDE4OTgyODI=",
				"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
				"gravatar_id": "",
				"url": "https://api.github.com/users/github-actions%5Bbot%5D",
				"html_url": "https://github.com/apps/github-actions",
				"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
				"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
				"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
				"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
				"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
				"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
				"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
				"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
				"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
				"type": "Bot",
				"user_view_type": "public",
				"site_admin": false
			},
			"created_at": "2025-12-24T17:53:56Z",
			"updated_at": "2026-01-07T13:12:40Z",
			"body": "****CLA Assistant Lite bot**** All contributors have signed the CLA  ✍️ ✅",
			"author_association": "CONTRIBUTOR",
			"reactions": {
				"url": "https://api.github.com/repos/laurent22/joplin/issues/comments/3690312235/reactions",
				"total_count": 0,
				"+1": 0,
				"-1": 0,
				"laugh": 0,
				"hooray": 0,
				"confused": 0,
				"heart": 0,
				"rocket": 0,
				"eyes": 0
			},
			"performed_via_github_app": {
				"id": 15368,
				"client_id": "Iv1.05c79e9ad1f6bdfa",
				"slug": "github-actions",
				"node_id": "MDM6QXBwMTUzNjg=",
				"owner": {
					"login": "github",
					"id": 9919,
					"node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=",
					"avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
					"gravatar_id": "",
					"url": "https://api.github.com/users/github",
					"html_url": "https://github.com/github",
					"followers_url": "https://api.github.com/users/github/followers",
					"following_url": "https://api.github.com/users/github/following{/other_user}",
					"gists_url": "https://api.github.com/users/github/gists{/gist_id}",
					"starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
					"subscriptions_url": "https://api.github.com/users/github/subscriptions",
					"organizations_url": "https://api.github.com/users/github/orgs",
					"repos_url": "https://api.github.com/users/github/repos",
					"events_url": "https://api.github.com/users/github/events{/privacy}",
					"received_events_url": "https://api.github.com/users/github/received_events",
					"type": "Organization",
					"user_view_type": "public",
					"site_admin": false
				},
				"name": "GitHub Actions",
				"description": "Automate your workflow from idea to production",
				"external_url": "https://help.github.com/en/actions",
				"html_url": "https://github.com/apps/github-actions",
				"created_at": "2018-07-30T09:30:17Z",
				"updated_at": "2026-05-05T14:51:38Z",
				"permissions": {
					"actions": "write",
					"administration": "read",
					"artifact_metadata": "write",
					"attestations": "write",
					"checks": "write",
					"code_quality": "write",
					"contents": "write",
					"copilot_requests": "write",
					"deployments": "write",
					"discussions": "write",
					"issues": "write",
					"merge_queues": "write",
					"metadata": "read",
					"models": "read",
					"packages": "write",
					"pages": "write",
					"pull_requests": "write",
					"repository_hooks": "write",
					"repository_projects": "write",
					"security_events": "write",
					"statuses": "write",
					"vulnerability_alerts": "read"
				},
				"events": [
					"branch_protection_rule",
					"check_run",
					"check_suite",
					"create",
					"delete",
					"deployment",
					"deployment_status",
					"discussion",
					"discussion_comment",
					"fork",
					"gollum",
					"issues",
					"issue_comment",
					"label",
					"merge_group",
					"milestone",
					"page_build",
					"public",
					"pull_request",
					"pull_request_review",
					"pull_request_review_comment",
					"push",
					"registry_package",
					"release",
					"repository",
					"repository_dispatch",
					"status",
					"watch",
					"workflow_dispatch",
					"workflow_run"
				]
			}
		},
		{
			"url": "https://api.github.com/repos/laurent22/joplin/issues/comments/3690319592",
			"html_url": "https://github.com/laurent22/joplin/pull/13986#issuecomment-3690319592",
			"issue_url": "https://api.github.com/repos/laurent22/joplin/issues/13986",
			"id": 3690319592,
			"node_id": "IC_kwDOBLftOs7b9c7o",
			"user": {
				"login": "darshan02parmar",
				"id": 180026762,
				"node_id": "U_kgDOCrr9ig",
				"avatar_url": "https://avatars.githubusercontent.com/u/180026762?v=4",
				"gravatar_id": "",
				"url": "https://api.github.com/users/darshan02parmar",
				"html_url": "https://github.com/darshan02parmar",
				"followers_url": "https://api.github.com/users/darshan02parmar/followers",
				"following_url": "https://api.github.com/users/darshan02parmar/following{/other_user}",
				"gists_url": "https://api.github.com/users/darshan02parmar/gists{/gist_id}",
				"starred_url": "https://api.github.com/users/darshan02parmar/starred{/owner}{/repo}",
				"subscriptions_url": "https://api.github.com/users/darshan02parmar/subscriptions",
				"organizations_url": "https://api.github.com/users/darshan02parmar/orgs",
				"repos_url": "https://api.github.com/users/darshan02parmar/repos",
				"events_url": "https://api.github.com/users/darshan02parmar/events{/privacy}",
				"received_events_url": "https://api.github.com/users/darshan02parmar/received_events",
				"type": "User",
				"user_view_type": "public",
				"site_admin": false
			},
			"created_at": "2025-12-24T18:01:20Z",
			"updated_at": "2025-12-24T18:01:20Z",
			"body": "I have read the CLA Document and I hereby sign the CLA\r\n",
			"author_association": "NONE",
			"reactions": {
				"url": "https://api.github.com/repos/laurent22/joplin/issues/comments/3690319592/reactions",
				"total_count": 0,
				"+1": 0,
				"-1": 0,
				"laugh": 0,
				"hooray": 0,
				"confused": 0,
				"heart": 0,
				"rocket": 0,
				"eyes": 0
			},
			"performed_via_github_app": null
		},
		{
			"url": "https://api.github.com/repos/laurent22/joplin/issues/comments/3690322169",
			"html_url": "https://github.com/laurent22/joplin/pull/13986#issuecomment-3690322169",
			"issue_url": "https://api.github.com/repos/laurent22/joplin/issues/13986",
			"id": 3690322169,
			"node_id": "IC_kwDOBLftOs7b9dj5",
			"user": {
				"login": "darshan02parmar",
				"id": 180026762,
				"node_id": "U_kgDOCrr9ig",
				"avatar_url": "https://avatars.githubusercontent.com/u/180026762?v=4",
				"gravatar_id": "",
				"url": "https://api.github.com/users/darshan02parmar",
				"html_url": "https://github.com/darshan02parmar",
				"followers_url": "https://api.github.com/users/darshan02parmar/followers",
				"following_url": "https://api.github.com/users/darshan02parmar/following{/other_user}",
				"gists_url": "https://api.github.com/users/darshan02parmar/gists{/gist_id}",
				"starred_url": "https://api.github.com/users/darshan02parmar/starred{/owner}{/repo}",
				"subscriptions_url": "https://api.github.com/users/darshan02parmar/subscriptions",
				"organizations_url": "https://api.github.com/users/darshan02parmar/orgs",
				"repos_url": "https://api.github.com/users/darshan02parmar/repos",
				"events_url": "https://api.github.com/users/darshan02parmar/events{/privacy}",
				"received_events_url": "https://api.github.com/users/darshan02parmar/received_events",
				"type": "User",
				"user_view_type": "public",
				"site_admin": false
			},
			"created_at": "2025-12-24T18:03:32Z",
			"updated_at": "2025-12-24T18:03:32Z",
			"body": "recheck\r\n\r\n",
			"author_association": "NONE",
			"reactions": {
				"url": "https://api.github.com/repos/laurent22/joplin/issues/comments/3690322169/reactions",
				"total_count": 0,
				"+1": 0,
				"-1": 0,
				"laugh": 0,
				"hooray": 0,
				"confused": 0,
				"heart": 0,
				"rocket": 0,
				"eyes": 0
			},
			"performed_via_github_app": null
		},
		{
			"url": "https://api.github.com/repos/laurent22/joplin/issues/comments/3718527624",
			"html_url": "https://github.com/laurent22/joplin/pull/13986#issuecomment-3718527624",
			"issue_url": "https://api.github.com/repos/laurent22/joplin/issues/13986",
			"id": 3718527624,
			"node_id": "IC_kwDOBLftOs7dpDqI",
			"user": {
				"login": "laurent22",
				"id": 1285584,
				"node_id": "MDQ6VXNlcjEyODU1ODQ=",
				"avatar_url": "https://avatars.githubusercontent.com/u/1285584?v=4",
				"gravatar_id": "",
				"url": "https://api.github.com/users/laurent22",
				"html_url": "https://github.com/laurent22",
				"followers_url": "https://api.github.com/users/laurent22/followers",
				"following_url": "https://api.github.com/users/laurent22/following{/other_user}",
				"gists_url": "https://api.github.com/users/laurent22/gists{/gist_id}",
				"starred_url": "https://api.github.com/users/laurent22/starred{/owner}{/repo}",
				"subscriptions_url": "https://api.github.com/users/laurent22/subscriptions",
				"organizations_url": "https://api.github.com/users/laurent22/orgs",
				"repos_url": "https://api.github.com/users/laurent22/repos",
				"events_url": "https://api.github.com/users/laurent22/events{/privacy}",
				"received_events_url": "https://api.github.com/users/laurent22/received_events",
				"type": "User",
				"user_view_type": "public",
				"site_admin": false
			},
			"created_at": "2026-01-07T11:53:22Z",
			"updated_at": "2026-01-07T11:53:22Z",
			"body": "Hello, thank you for your submission.\r\n\r\nAt the moment, the tests do not appear to pass. In addition, the changes give the impression that the pull request may have been generated automatically, without sufficient human review or refinement. We're unable to accept submissions in this form.\r\n\r\nIf you're still interested in contributing, please ensure you changes have been thoroughly reviewed, tested, and supported by reliable unit tests.\r\n\r\nPlease also note that we do not participate in GSoC or accept submissions made as part of school or university assignments. Unfortunately, we don't have the capacity to review such work, nor are we equipped to act in a teaching or supervisory role.",
			"author_association": "OWNER",
			"reactions": {
				"url": "https://api.github.com/repos/laurent22/joplin/issues/comments/3718527624/reactions",
				"total_count": 0,
				"+1": 0,
				"-1": 0,
				"laugh": 0,
				"hooray": 0,
				"confused": 0,
				"heart": 0,
				"rocket": 0,
				"eyes": 0
			},
			"performed_via_github_app": null
		},
		{
			"url": "https://api.github.com/repos/laurent22/joplin/issues/comments/3718686189",
			"html_url": "https://github.com/laurent22/joplin/pull/13986#issuecomment-3718686189",
			"issue_url": "https://api.github.com/repos/laurent22/joplin/issues/13986",
			"id": 3718686189,
			"node_id": "IC_kwDOBLftOs7dpqXt",
			"user": {
				"login": "darshan02parmar",
				"id": 180026762,
				"node_id": "U_kgDOCrr9ig",
				"avatar_url": "https://avatars.githubusercontent.com/u/180026762?v=4",
				"gravatar_id": "",
				"url": "https://api.github.com/users/darshan02parmar",
				"html_url": "https://github.com/darshan02parmar",
				"followers_url": "https://api.github.com/users/darshan02parmar/followers",
				"following_url": "https://api.github.com/users/darshan02parmar/following{/other_user}",
				"gists_url": "https://api.github.com/users/darshan02parmar/gists{/gist_id}",
				"starred_url": "https://api.github.com/users/darshan02parmar/starred{/owner}{/repo}",
				"subscriptions_url": "https://api.github.com/users/darshan02parmar/subscriptions",
				"organizations_url": "https://api.github.com/users/darshan02parmar/orgs",
				"repos_url": "https://api.github.com/users/darshan02parmar/repos",
				"events_url": "https://api.github.com/users/darshan02parmar/events{/privacy}",
				"received_events_url": "https://api.github.com/users/darshan02parmar/received_events",
				"type": "User",
				"user_view_type": "public",
				"site_admin": false
			},
			"created_at": "2026-01-07T12:41:52Z",
			"updated_at": "2026-01-07T12:41:52Z",
			"body": "Thank you for the clarification.\r\n\r\nI understand the concerns regarding test stability and the overall quality of the submission. I’ll take this feedback seriously and step back to better review and validate changes locally before proposing them again.\r\n\r\nI appreciate the work you maintain here, and I may contribute again in the future with a more focused and thoroughly validated change.\r\n\r\nThanks.\r\n",
			"author_association": "NONE",
			"reactions": {
				"url": "https://api.github.com/repos/laurent22/joplin/issues/comments/3718686189/reactions",
				"total_count": 1,
				"+1": 1,
				"-1": 0,
				"laugh": 0,
				"hooray": 0,
				"confused": 0,
				"heart": 0,
				"rocket": 0,
				"eyes": 0
			},
			"performed_via_github_app": null
		}
	]
}